<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSelectedlineTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('selectedline', function (Blueprint $table) {
            $table->increments('id');
            $table->tinyInteger('type')->comment('1:四季游,2:一日游,3:周末游,4:生态游')->nullable();
            $table->string('title')->comment('标题')->nullable();
            $table->string('content')->comment('内容')->nullable();
            $table->string('tag')->comment('标签')->nullable();
            $table->string('address')->comment('地址')->nullable();
            $table->string('iphone')->comment('电话')->nullable();
            $table->integer('price')->comment('门票')->nullable();
            $table->string('author')->comment('编辑')->nullable();
            $table->integer('watch')->comment('浏览量')->nullable();
            $table->integer('carfare')->comment('交通费')->nullable();
            $table->string('attention')->comment('注意事项')->nullable();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('selectedline');
    }
}
